package com.friendtrip.dto;

/**
 * Created by william.lee on 2017/4/3 0003.
 */
public class ErrorInfo<T> {
    public static final Integer OK = 0;
    public static final Integer ERROR = 100;

    private Integer code;
    private String message;
    private String url;
    private T data;

    public Integer getCode() {
        return code;
    }

    public ErrorInfo setCode(Integer code) {
        this.code = code;
        return this;
    }

    public String getMessage() {
        return message;
    }

    public ErrorInfo setMessage(String message) {
        this.message = message;
        return this;
    }

    public String getUrl() {
        return url;
    }

    public ErrorInfo setUrl(String url) {
        this.url = url;
        return this;
    }

    public T getData() {
        return data;
    }

    public ErrorInfo setData(T data) {
        this.data = data;
        return this;
    }
}
